package factory;

import creator.EmissorCreator;
import creator.ReceptorCreator;
import interfaces.Emissor;
import interfaces.Receptor;

public class VisaComunicadorFactory implements ComunicadorFactory{
	private EmissorCreator emissorCreator = new EmissorCreator();
	private ReceptorCreator receptorCreator = new ReceptorCreator();
	
	@Override
	public Emissor createEmissor() {
		// criando um emissor visa
		return this.emissorCreator.create(EmissorCreator.VISA);
	}

	@Override
	public Receptor createReceptor() {
		// criando um receptor visa
		return this.receptorCreator.create(ReceptorCreator.VISA);
	}

}
